Dynomotion

Group: DynoMotion Message: 3345 From: mrosenfield2 Date: 1/22/2012
Subject: Getting Started with Mill Conversion
Hello, everyone!
I have a Tree knee mill that I am converting to CNC. I was a two-axis system with resolver feedback, and 96 VDC motors.
I have replaced the resolvers with encoders, and replaced the old amps with Advanced Motion Control servo amps. I will be adding servos to the quill and knee.
I have got the computer and Kflop/Kanalog talking on the bench, and am now trying to set everything up before I move it to the shop.

I have spent the last week reading the documentation and reading this forum and the one on CNCZone, and I still need some help. Here are my current questions:

1. An old thread talked about the KFlop supporting 4 encoders, but changeable in firmware. I need 4 encoders plus MPG - is this currently supported?
2. The manual says that J1 is used for encoders' A/B signal, and J2 for index signals. Is this still true? I assume I write some C code (or find some for homing) to use the index pulses?
3. Is there any code written for handling a MPG?
4. The axis config has the option to download to KFlop or save as C. Am I reading the instructions correctly that downloading is preferable to putting the config info in C?
5. I'm planning on using KMotionCNC to actually run the mill. This is where the encoder info is set up, but isn't this needed in Kmotion as well?
6. The encoder counts specified to KMotionCNC are encoder resolution, or resolution x 4?
7. The homing and setup is supposed to be put in a C program - when is this called, and what calls it? Is it the buttons in KMotionCNC?

Thanks!

Group: DynoMotion Message: 3346 From: Tom Kerekes Date: 1/22/2012
Subject: Re: Getting Started with Mill Conversion
Hi!
 
#1
KFLOP actually has 8 hardware encoder inputs.  But anyway MPG inputs are usually slow enough they can be handled in software so they can be connected to any two spare inputs.  Does your MPG have differential outputs (A+ A- B+ B-) or just single ended (A B)?
 
#2
Yes that is basically correct.  Actually index pulses can be connected to any input as they are handled in software.  The index pulses are not required unless you wish to use them to improve your homing accuracy.  In that case you might write the homing routine to move until a home switch is detected, then reverse until the first index pulse is detected.
 
#3
Yes there is an example called MPGSmooth.c
 
#4
When configuring and testing just download from KMotion until everything is working properly.  Finally a C program will be created to configure KFLOP with the same setting so that downloading from KMotion is no longer required.  See:
 
 
#5
Yes the Encoder resolution is set in KMotionCNC as Count Per Inch.  Don't worry about that until later after your axis is working and tuned in KMotion.exe.  The encoder mode is configured in KMotion.exe.  Set the input type for the Axis as Encoder and set the InputChan0 to the encoder you wired it to.
 
There is an example configuration for Kanalog called KanalogInitialPID.mot.  Load that into your axis to start with.  Then change the InputChan0 and OutputChan for the encoder and DAC that you are using for the axis. 
 
#6
Resolution x 4  Counts not Cycles
 
#7
Yes normally there are two C programs that you will need to create.  One we refer to as your Init.c program that will configure and enable all your axis and also define your Coordinate system.  The other would be a Home.c program to home all your system.  You can assign two User Buttons in KMotionCNC to do these functions.  But don't worry about this yet.  Get everything in KMotion.exe working first.
 
HTH
TK
 

Group: DynoMotion Message: 3347 From: mrosenfield2 Date: 1/22/2012
Subject: Re: Getting Started with Mill Conversion
Thanks for the quick reply, Tom!

Yes, the MPG has differential outputs. As it will have about 6 feet of
wire, I'd just as soon use the differential wiring.
The index pulses are also differential. I was planning on using them as
you suggest.

So does the "Download Channel' function have to be done after each
power-up, for each axis?

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi!
> Â
> #1
> KFLOP actually has 8 hardware encoder inputs. But anyway MPG
inputs are usually slow enough they can be handled in software so they
can be connected to any two spare inputs. Does your MPG have
differential outputs (A+ A- B+ B-) or just single ended (A B)?
> Â
> #2
> Yes that is basically correct. Actually index pulses can be
connected to any input as they are handled in software. The index
pulses are not required unless you wish to use them to improve your
homing accuracy. In that case you might write the homing routine to
move until a home switch is detected, then reverse until the first index
pulse is detected.
> Â
> #3
> Yes there is an example called MPGSmooth.c
> Â
> #4
> When configuring and testing just download from KMotion until
everything is working properly. Finally a C program will be created
to configure KFLOP with the same setting so that downloading from
KMotion is no longer required. See:
> Â
> http://www.dynomotion.com/Help/FlashHelp/Parameters/index.html
> Â
> #5
> Yes the Encoder resolution is set in KMotionCNC as Count Per Inch.Â
Don't worry about that until later after your axis is working and
tuned in KMotion.exe.  The encoder mode is configured in
KMotion.exe. Set the input type for the Axis as Encoder and set the
InputChan0 to the encoder you wired it to.
> Â
> There is an example configuration for Kanalog called
KanalogInitialPID.mot. Load that into your axis to start with.Â
Then change the InputChan0 and OutputChan for the encoder and DAC that
you are using for the axis.Â
> Â
> #6
> Resolution x 4Â Counts not Cycles
> Â
> #7
> Yes normally there are two C programs that you will need to
create. One we refer to as your Init.c program that will configure
and enable all your axis and also define your Coordinate system.Â
The other would be a Home.c program to home all your system. You
can assign two User Buttons in KMotionCNC to do these functions.Â
But don't worry about this yet. Get everything in KMotion.exe
working first.
> Â
> HTH
> TK
> Â
>
> From: mrosenfield2 mrosenfield@...
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, January 22, 2012 6:57 PM
> Subject: [DynoMotion] Getting Started with Mill Conversion
>
>
> Â
> Hello, everyone!
> I have a Tree knee mill that I am converting to CNC. I was a two-axis
system with resolver feedback, and 96 VDC motors.
> I have replaced the resolvers with encoders, and replaced the old amps
with Advanced Motion Control servo amps. I will be adding servos to the
quill and knee.
> I have got the computer and Kflop/Kanalog talking on the bench, and am
now trying to set everything up before I move it to the shop.
>
> I have spent the last week reading the documentation and reading this
forum and the one on CNCZone, and I still need some help. Here are my
current questions:
>
> 1. An old thread talked about the KFlop supporting 4 encoders, but
changeable in firmware. I need 4 encoders plus MPG - is this currently
supported?
> 2. The manual says that J1 is used for encoders' A/B signal, and J2
for index signals. Is this still true? I assume I write some C code (or
find some for homing) to use the index pulses?
> 3. Is there any code written for handling a MPG?
> 4. The axis config has the option to download to KFlop or save as C.
Am I reading the instructions correctly that downloading is preferable
to putting the config info in C?
> 5. I'm planning on using KMotionCNC to actually run the mill. This is
where the encoder info is set up, but isn't this needed in Kmotion as
well?
> 6. The encoder counts specified to KMotionCNC are encoder resolution,
or resolution x 4?
> 7. The homing and setup is supposed to be put in a C program - when is
this called, and what calls it? Is it the buttons in KMotionCNC?
>
> Thanks!
>
Group: DynoMotion Message: 3361 From: Tom Kerekes Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
ok so wire the mpg into a spare AB  pair of differential inputs on Kanalog (JP1 or JP2).  Also wire the index inputs to any spare differential inputs either A or B.
 
Yes while initially testing you will need to download to each channel to configure each axis after a power cycle.
 
The "Move" button on the Step Response Screen will also: Disable the axis, Download the Screen Parameters for the axis, enable the axis, perform a move forward and backwards of the specified size, upload data, and plot all the results.  This is the most common way to test an axis.
 
But again after you have all your hardware working, tested, tuned you will then create a C program that will configure and enable all your Axes in one step which can then be triggered by a button in KMotionCNC or the RESET button in Mach3.
 
Regards
TK

Group: DynoMotion Message: 3368 From: mrosenfield2 Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
OK, got it!
Now I just need to mount the hardware and wire it to the machine, and
I'll see what happens when I drive the axes.
I'll be back...

Thanks again, Tom!

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> ok so wire the mpg into a spare ABÂ Â pair of differential
inputs on Kanalog (JP1 or JP2). Also wire the index inputs to any
spare differential inputs either A or B.
> Â
> Yes while initially testing you will need to download to each channel
to configure each axis after a power cycle.
> Â
> The "Move" button on the Step Response Screen will also: Disable the
axis, Download the Screen Parameters for the axis, enable the axis,
perform a move forward and backwards of the specified size, upload data,
and plot all the results. This is the most common way to test an
axis.
> Â
> But again after you have all your hardware working, tested, tuned you
will then create a C program that will configure and enable all your
Axes in one step which can then be triggered by a button in KMotionCNC
or the RESET button in Mach3.
> Â
> Regards
> TK
>
>
> ________________________________
> From: mrosenfield2 mrosenfield@...
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, January 22, 2012 8:24 PM
> Subject: [DynoMotion] Re: Getting Started with Mill Conversion
>
>
> Â
> Thanks for the quick reply, Tom!
>
> Yes, the MPG has differential outputs. As it will have about 6 feet of
> wire, I'd just as soon use the differential wiring.
> The index pulses are also differential. I was planning on using them
as
> you suggest.
>
> So does the "Download Channel' function have to be done after each
> power-up, for each axis?
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> >
> > Hi!
> > Â
> > #1
> > KFLOP actually has 8 hardware encoder inputs. But anyway MPG
> inputs are usually slow enough they can be handled in software so they
> can be connected to any two spare inputs. Does your MPG have
> differential outputs (A+ A- B+ B-) or just single ended (A B)?
> > Â
> > #2
> > Yes that is basically correct. Actually index pulses can be
> connected to any input as they are handled in software. The
index
> pulses are not required unless you wish to use them to improve your
> homing accuracy. In that case you might write the homing routine
to
> move until a home switch is detected, then reverse until the first
index
> pulse is detected.
> > Â
> > #3
> > Yes there is an example called MPGSmooth.c
> > Â
> > #4
> > When configuring and testing just download from KMotion until
> everything is working properly. Finally a C program will be
created
> to configure KFLOP with the same setting so that downloading from
> KMotion is no longer required. See:
> > Â
> > http://www.dynomotion.com/Help/FlashHelp/Parameters/index.html
> > Â
> > #5
> > Yes the Encoder resolution is set in KMotionCNC as Count Per
Inch.Â
> Don't worry about that until later after your axis is working and
> tuned in KMotion.exe.  The encoder mode is
configured in
> KMotion.exe. Set the input type for the Axis as Encoder and set
the
> InputChan0 to the encoder you wired it to.
> > Â
> > There is an example configuration for Kanalog called
> KanalogInitialPID.mot. Load that into your axis to start
with.Â
> Then change the InputChan0 and OutputChan for the encoder and DAC that
> you are using for the axis.Â
> > Â
> > #6
> > Resolution x 4Â Counts not Cycles
> > Â
> > #7
> > Yes normally there are two C programs that you will need to
> create. One we refer to as your Init.c program that will
configure
> and enable all your axis and also define your Coordinate system.Â
> The other would be a Home.c program to home all your system. You
> can assign two User Buttons in KMotionCNC to do these functions.Â
> But don't worry about this yet. Get everything in KMotion.exe
> working first.
> > Â
> > HTH
> > TK
> > Â
> >
> > From: mrosenfield2 mrosenfield@
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, January 22, 2012 6:57 PM
> > Subject: [DynoMotion] Getting Started with Mill Conversion
> >
> >
> > Â
> > Hello, everyone!
> > I have a Tree knee mill that I am converting to CNC. I was a
two-axis
> system with resolver feedback, and 96 VDC motors.
> > I have replaced the resolvers with encoders, and replaced the old
amps
> with Advanced Motion Control servo amps. I will be adding servos to
the
> quill and knee.
> > I have got the computer and Kflop/Kanalog talking on the bench, and
am
> now trying to set everything up before I move it to the shop.
> >
> > I have spent the last week reading the documentation and reading
this
> forum and the one on CNCZone, and I still need some help. Here are my
> current questions:
> >
> > 1. An old thread talked about the KFlop supporting 4 encoders, but
> changeable in firmware. I need 4 encoders plus MPG - is this currently
> supported?
> > 2. The manual says that J1 is used for encoders' A/B signal, and J2
> for index signals. Is this still true? I assume I write some C code
(or
> find some for homing) to use the index pulses?
> > 3. Is there any code written for handling a MPG?
> > 4. The axis config has the option to download to KFlop or save as C.
> Am I reading the instructions correctly that downloading is preferable
> to putting the config info in C?
> > 5. I'm planning on using KMotionCNC to actually run the mill. This
is
> where the encoder info is set up, but isn't this needed in Kmotion as
> well?
> > 6. The encoder counts specified to KMotionCNC are encoder
resolution,
> or resolution x 4?
> > 7. The homing and setup is supposed to be put in a C program - when
is
> this called, and what calls it? Is it the buttons in KMotionCNC?
> >
> > Thanks!
> >
>
Group: DynoMotion Message: 3372 From: mrosenfield2 Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
One more question: I gutted the Hoffman enclosure on the mill, and am
planning on installing the computer, KFlop/Kanalog, and new drives in
it.
Does the KFlop need any electrical shielding, or can I just bolt it down
in the enclosure? I didn't figure I needed a separate computer case
either, but now I'm wondering.
How have other people mounted their electronics?




--- In DynoMotion@yahoogroups.com, "mrosenfield2" <mrosenfield@...>
wrote:
>
> OK, got it!
> Now I just need to mount the hardware and wire it to the machine, and
> I'll see what happens when I drive the axes.
> I'll be back...
>
> Thanks again, Tom!
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> >
> > ok so wire the mpg into a spare ABÂ Â pair of differential
> inputs on Kanalog (JP1 or JP2). Also wire the index inputs to any
> spare differential inputs either A or B.
> > Â
> > Yes while initially testing you will need to download to each
channel
> to configure each axis after a power cycle.
> > Â
> > The "Move" button on the Step Response Screen will also: Disable the
> axis, Download the Screen Parameters for the axis, enable the axis,
> perform a move forward and backwards of the specified size, upload
data,
> and plot all the results. This is the most common way to test an
> axis.
> > Â
> > But again after you have all your hardware working, tested, tuned
you
> will then create a C program that will configure and enable all your
> Axes in one step which can then be triggered by a button in KMotionCNC
> or the RESET button in Mach3.
> > Â
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: mrosenfield2 mrosenfield@
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, January 22, 2012 8:24 PM
> > Subject: [DynoMotion] Re: Getting Started with Mill Conversion
> >
> >
> > Â
> > Thanks for the quick reply, Tom!
> >
> > Yes, the MPG has differential outputs. As it will have about 6 feet
of
> > wire, I'd just as soon use the differential wiring.
> > The index pulses are also differential. I was planning on using them
> as
> > you suggest.
> >
> > So does the "Download Channel' function have to be done after each
> > power-up, for each axis?
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> > >
> > > Hi!
> > > Â
> > > #1
> > > KFLOP actually has 8 hardware encoder inputs. But anyway MPG
> > inputs are usually slow enough they can be handled in software so
they
> > can be connected to any two spare inputs. Does your MPG have
> > differential outputs (A+ A- B+ B-) or just single ended (A B)?
> > > Â
> > > #2
> > > Yes that is basically correct. Actually index pulses can be
> > connected to any input as they are handled in software. The
> index
> > pulses are not required unless you wish to use them to improve your
> > homing accuracy. In that case you might write the homing
routine
> to
> > move until a home switch is detected, then reverse until the first
> index
> > pulse is detected.
> > > Â
> > > #3
> > > Yes there is an example called MPGSmooth.c
> > > Â
> > > #4
> > > When configuring and testing just download from KMotion until
> > everything is working properly. Finally a C program will be
> created
> > to configure KFLOP with the same setting so that downloading from
> > KMotion is no longer required. See:
> > > Â
> > > http://www.dynomotion.com/Help/FlashHelp/Parameters/index.html
> > > Â
> > > #5
> > > Yes the Encoder resolution is set in KMotionCNC as Count Per
> Inch.Â
> > Don't worry about that until later after your axis is working and
> > tuned in KMotion.exe.  The encoder mode is
> configured in
> > KMotion.exe. Set the input type for the Axis as Encoder and
set
> the
> > InputChan0 to the encoder you wired it to.
> > > Â
> > > There is an example configuration for Kanalog called
> > KanalogInitialPID.mot. Load that into your axis to start
> with.Â
> > Then change the InputChan0 and OutputChan for the encoder and DAC
that
> > you are using for the axis.Â
> > > Â
> > > #6
> > > Resolution x 4Â Counts not Cycles
> > > Â
> > > #7
> > > Yes normally there are two C programs that you will need to
> > create. One we refer to as your Init.c program that will
> configure
> > and enable all your axis and also define your Coordinate
system.Â
> > The other would be a Home.c program to home all your system.Â
You
> > can assign two User Buttons in KMotionCNC to do these
functions.Â
> > But don't worry about this yet. Get everything in KMotion.exe
> > working first.
> > > Â
> > > HTH
> > > TK
> > > Â
> > >
> > > From: mrosenfield2 mrosenfield@
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, January 22, 2012 6:57 PM
> > > Subject: [DynoMotion] Getting Started with Mill Conversion
> > >
> > >
> > > Â
> > > Hello, everyone!
> > > I have a Tree knee mill that I am converting to CNC. I was a
> two-axis
> > system with resolver feedback, and 96 VDC motors.
> > > I have replaced the resolvers with encoders, and replaced the old
> amps
> > with Advanced Motion Control servo amps. I will be adding servos to
> the
> > quill and knee.
> > > I have got the computer and Kflop/Kanalog talking on the bench,
and
> am
> > now trying to set everything up before I move it to the shop.
> > >
> > > I have spent the last week reading the documentation and reading
> this
> > forum and the one on CNCZone, and I still need some help. Here are
my
> > current questions:
> > >
> > > 1. An old thread talked about the KFlop supporting 4 encoders, but
> > changeable in firmware. I need 4 encoders plus MPG - is this
currently
> > supported?
> > > 2. The manual says that J1 is used for encoders' A/B signal, and
J2
> > for index signals. Is this still true? I assume I write some C code
> (or
> > find some for homing) to use the index pulses?
> > > 3. Is there any code written for handling a MPG?
> > > 4. The axis config has the option to download to KFlop or save as
C.
> > Am I reading the instructions correctly that downloading is
preferable
> > to putting the config info in C?
> > > 5. I'm planning on using KMotionCNC to actually run the mill. This
> is
> > where the encoder info is set up, but isn't this needed in Kmotion
as
> > well?
> > > 6. The encoder counts specified to KMotionCNC are encoder
> resolution,
> > or resolution x 4?
> > > 7. The homing and setup is supposed to be put in a C program -
when
> is
> > this called, and what calls it? Is it the buttons in KMotionCNC?
> > >
> > > Thanks!
> > >
> >
>
Group: DynoMotion Message: 3373 From: Tom Kerekes Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
That should be fine in my opinion.
TK

Group: DynoMotion Message: 3374 From: tmday7 Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
Here is a few pics of my mill/drill.
http://groups.yahoo.com/group/DynoMotion/photos/album/176979248/pic/list
I first had the KFLOP in a little project box before i made my "quick" Control Enclosure. The machine is a work in progress. :) Meaning...i like to make parts and tooling more than parts for machine. :) So i do a little at a time to machine, than take a breather and make other things. ;)

HTH,
Troy

--- In DynoMotion@yahoogroups.com, "mrosenfield2" <mrosenfield@...> wrote:
>
>
> One more question: I gutted the Hoffman enclosure on the mill, and am
> planning on installing the computer, KFlop/Kanalog, and new drives in
> it.
> Does the KFlop need any electrical shielding, or can I just bolt it down
> in the enclosure? I didn't figure I needed a separate computer case
> either, but now I'm wondering.
> How have other people mounted their electronics?
>
>
>
>
> --- In DynoMotion@yahoogroups.com, "mrosenfield2" <mrosenfield@>
> wrote:
> >
> > OK, got it!
> > Now I just need to mount the hardware and wire it to the machine, and
> > I'll see what happens when I drive the axes.
> > I'll be back...
> >
> > Thanks again, Tom!
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> > >
> > > ok so wire the mpg into a spare ABÂ Â pair of differential
> > inputs on Kanalog (JP1 or JP2). Also wire the index inputs to any
> > spare differential inputs either A or B.
> > > Â
> > > Yes while initially testing you will need to download to each
> channel
> > to configure each axis after a power cycle.
> > > Â
> > > The "Move" button on the Step Response Screen will also: Disable the
> > axis, Download the Screen Parameters for the axis, enable the axis,
> > perform a move forward and backwards of the specified size, upload
> data,
> > and plot all the results. This is the most common way to test an
> > axis.
> > > Â
> > > But again after you have all your hardware working, tested, tuned
> you
> > will then create a C program that will configure and enable all your
> > Axes in one step which can then be triggered by a button in KMotionCNC
> > or the RESET button in Mach3.
> > > Â
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: mrosenfield2 mrosenfield@
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, January 22, 2012 8:24 PM
> > > Subject: [DynoMotion] Re: Getting Started with Mill Conversion
> > >
> > >
> > > Â
> > > Thanks for the quick reply, Tom!
> > >
> > > Yes, the MPG has differential outputs. As it will have about 6 feet
> of
> > > wire, I'd just as soon use the differential wiring.
> > > The index pulses are also differential. I was planning on using them
> > as
> > > you suggest.
> > >
> > > So does the "Download Channel' function have to be done after each
> > > power-up, for each axis?
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> > > >
> > > > Hi!
> > > > Â
> > > > #1
> > > > KFLOP actually has 8 hardware encoder inputs. But anyway MPG
> > > inputs are usually slow enough they can be handled in software so
> they
> > > can be connected to any two spare inputs. Does your MPG have
> > > differential outputs (A+ A- B+ B-) or just single ended (A B)?
> > > > Â
> > > > #2
> > > > Yes that is basically correct. Actually index pulses can be
> > > connected to any input as they are handled in software. The
> > index
> > > pulses are not required unless you wish to use them to improve your
> > > homing accuracy. In that case you might write the homing
> routine
> > to
> > > move until a home switch is detected, then reverse until the first
> > index
> > > pulse is detected.
> > > > Â
> > > > #3
> > > > Yes there is an example called MPGSmooth.c
> > > > Â
> > > > #4
> > > > When configuring and testing just download from KMotion until
> > > everything is working properly. Finally a C program will be
> > created
> > > to configure KFLOP with the same setting so that downloading from
> > > KMotion is no longer required. See:
> > > > Â
> > > > http://www.dynomotion.com/Help/FlashHelp/Parameters/index.html
> > > > Â
> > > > #5
> > > > Yes the Encoder resolution is set in KMotionCNC as Count Per
> > Inch.Â
> > > Don't worry about that until later after your axis is working and
> > > tuned in KMotion.exe.  The encoder mode is
> > configured in
> > > KMotion.exe. Set the input type for the Axis as Encoder and
> set
> > the
> > > InputChan0 to the encoder you wired it to.
> > > > Â
> > > > There is an example configuration for Kanalog called
> > > KanalogInitialPID.mot. Load that into your axis to start
> > with.Â
> > > Then change the InputChan0 and OutputChan for the encoder and DAC
> that
> > > you are using for the axis.Â
> > > > Â
> > > > #6
> > > > Resolution x 4Â Counts not Cycles
> > > > Â
> > > > #7
> > > > Yes normally there are two C programs that you will need to
> > > create. One we refer to as your Init.c program that will
> > configure
> > > and enable all your axis and also define your Coordinate
> system.Â
> > > The other would be a Home.c program to home all your system.Â
> You
> > > can assign two User Buttons in KMotionCNC to do these
> functions.Â
> > > But don't worry about this yet. Get everything in KMotion.exe
> > > working first.
> > > > Â
> > > > HTH
> > > > TK
> > > > Â
> > > >
> > > > From: mrosenfield2 mrosenfield@
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, January 22, 2012 6:57 PM
> > > > Subject: [DynoMotion] Getting Started with Mill Conversion
> > > >
> > > >
> > > > Â
> > > > Hello, everyone!
> > > > I have a Tree knee mill that I am converting to CNC. I was a
> > two-axis
> > > system with resolver feedback, and 96 VDC motors.
> > > > I have replaced the resolvers with encoders, and replaced the old
> > amps
> > > with Advanced Motion Control servo amps. I will be adding servos to
> > the
> > > quill and knee.
> > > > I have got the computer and Kflop/Kanalog talking on the bench,
> and
> > am
> > > now trying to set everything up before I move it to the shop.
> > > >
> > > > I have spent the last week reading the documentation and reading
> > this
> > > forum and the one on CNCZone, and I still need some help. Here are
> my
> > > current questions:
> > > >
> > > > 1. An old thread talked about the KFlop supporting 4 encoders, but
> > > changeable in firmware. I need 4 encoders plus MPG - is this
> currently
> > > supported?
> > > > 2. The manual says that J1 is used for encoders' A/B signal, and
> J2
> > > for index signals. Is this still true? I assume I write some C code
> > (or
> > > find some for homing) to use the index pulses?
> > > > 3. Is there any code written for handling a MPG?
> > > > 4. The axis config has the option to download to KFlop or save as
> C.
> > > Am I reading the instructions correctly that downloading is
> preferable
> > > to putting the config info in C?
> > > > 5. I'm planning on using KMotionCNC to actually run the mill. This
> > is
> > > where the encoder info is set up, but isn't this needed in Kmotion
> as
> > > well?
> > > > 6. The encoder counts specified to KMotionCNC are encoder
> > resolution,
> > > or resolution x 4?
> > > > 7. The homing and setup is supposed to be put in a C program -
> when
> > is
> > > this called, and what calls it? Is it the buttons in KMotionCNC?
> > > >
> > > > Thanks!
> > > >
> > >
> >
>
Group: DynoMotion Message: 3375 From: himykabibble Date: 1/23/2012
Subject: Re: Getting Started with Mill Conversion
FWIW - I have my KFlop mounted in the same enclosure with ALL the other electronics - breakout boards, power supplies servo drives, VFD, relays, PC, etc. Works fine.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, "mrosenfield2" <mrosenfield@...> wrote:
>
>
> One more question: I gutted the Hoffman enclosure on the mill, and am
> planning on installing the computer, KFlop/Kanalog, and new drives in
> it.
> Does the KFlop need any electrical shielding, or can I just bolt it down
> in the enclosure? I didn't figure I needed a separate computer case
> either, but now I'm wondering.
> How have other people mounted their electronics?
>
>
>
>
> --- In DynoMotion@yahoogroups.com, "mrosenfield2" <mrosenfield@>
> wrote:
> >
> > OK, got it!
> > Now I just need to mount the hardware and wire it to the machine, and
> > I'll see what happens when I drive the axes.
> > I'll be back...
> >
> > Thanks again, Tom!
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> > >
> > > ok so wire the mpg into a spare ABÂ Â pair of differential
> > inputs on Kanalog (JP1 or JP2). Also wire the index inputs to any
> > spare differential inputs either A or B.
> > > Â
> > > Yes while initially testing you will need to download to each
> channel
> > to configure each axis after a power cycle.
> > > Â
> > > The "Move" button on the Step Response Screen will also: Disable the
> > axis, Download the Screen Parameters for the axis, enable the axis,
> > perform a move forward and backwards of the specified size, upload
> data,
> > and plot all the results. This is the most common way to test an
> > axis.
> > > Â
> > > But again after you have all your hardware working, tested, tuned
> you
> > will then create a C program that will configure and enable all your
> > Axes in one step which can then be triggered by a button in KMotionCNC
> > or the RESET button in Mach3.
> > > Â
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: mrosenfield2 mrosenfield@
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, January 22, 2012 8:24 PM
> > > Subject: [DynoMotion] Re: Getting Started with Mill Conversion
> > >
> > >
> > > Â
> > > Thanks for the quick reply, Tom!
> > >
> > > Yes, the MPG has differential outputs. As it will have about 6 feet
> of
> > > wire, I'd just as soon use the differential wiring.
> > > The index pulses are also differential. I was planning on using them
> > as
> > > you suggest.
> > >
> > > So does the "Download Channel' function have to be done after each
> > > power-up, for each axis?
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes tk@ wrote:
> > > >
> > > > Hi!
> > > > Â
> > > > #1
> > > > KFLOP actually has 8 hardware encoder inputs. But anyway MPG
> > > inputs are usually slow enough they can be handled in software so
> they
> > > can be connected to any two spare inputs. Does your MPG have
> > > differential outputs (A+ A- B+ B-) or just single ended (A B)?
> > > > Â
> > > > #2
> > > > Yes that is basically correct. Actually index pulses can be
> > > connected to any input as they are handled in software. The
> > index
> > > pulses are not required unless you wish to use them to improve your
> > > homing accuracy. In that case you might write the homing
> routine
> > to
> > > move until a home switch is detected, then reverse until the first
> > index
> > > pulse is detected.
> > > > Â
> > > > #3
> > > > Yes there is an example called MPGSmooth.c
> > > > Â
> > > > #4
> > > > When configuring and testing just download from KMotion until
> > > everything is working properly. Finally a C program will be
> > created
> > > to configure KFLOP with the same setting so that downloading from
> > > KMotion is no longer required. See:
> > > > Â
> > > > http://www.dynomotion.com/Help/FlashHelp/Parameters/index.html
> > > > Â
> > > > #5
> > > > Yes the Encoder resolution is set in KMotionCNC as Count Per
> > Inch.Â
> > > Don't worry about that until later after your axis is working and
> > > tuned in KMotion.exe.  The encoder mode is
> > configured in
> > > KMotion.exe. Set the input type for the Axis as Encoder and
> set
> > the
> > > InputChan0 to the encoder you wired it to.
> > > > Â
> > > > There is an example configuration for Kanalog called
> > > KanalogInitialPID.mot. Load that into your axis to start
> > with.Â
> > > Then change the InputChan0 and OutputChan for the encoder and DAC
> that
> > > you are using for the axis.Â
> > > > Â
> > > > #6
> > > > Resolution x 4Â Counts not Cycles
> > > > Â
> > > > #7
> > > > Yes normally there are two C programs that you will need to
> > > create. One we refer to as your Init.c program that will
> > configure
> > > and enable all your axis and also define your Coordinate
> system.Â
> > > The other would be a Home.c program to home all your system.Â
> You
> > > can assign two User Buttons in KMotionCNC to do these
> functions.Â
> > > But don't worry about this yet. Get everything in KMotion.exe
> > > working first.
> > > > Â
> > > > HTH
> > > > TK
> > > > Â
> > > >
> > > > From: mrosenfield2 mrosenfield@
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, January 22, 2012 6:57 PM
> > > > Subject: [DynoMotion] Getting Started with Mill Conversion
> > > >
> > > >
> > > > Â
> > > > Hello, everyone!
> > > > I have a Tree knee mill that I am converting to CNC. I was a
> > two-axis
> > > system with resolver feedback, and 96 VDC motors.
> > > > I have replaced the resolvers with encoders, and replaced the old
> > amps
> > > with Advanced Motion Control servo amps. I will be adding servos to
> > the
> > > quill and knee.
> > > > I have got the computer and Kflop/Kanalog talking on the bench,
> and
> > am
> > > now trying to set everything up before I move it to the shop.
> > > >
> > > > I have spent the last week reading the documentation and reading
> > this
> > > forum and the one on CNCZone, and I still need some help. Here are
> my
> > > current questions:
> > > >
> > > > 1. An old thread talked about the KFlop supporting 4 encoders, but
> > > changeable in firmware. I need 4 encoders plus MPG - is this
> currently
> > > supported?
> > > > 2. The manual says that J1 is used for encoders' A/B signal, and
> J2
> > > for index signals. Is this still true? I assume I write some C code
> > (or
> > > find some for homing) to use the index pulses?
> > > > 3. Is there any code written for handling a MPG?
> > > > 4. The axis config has the option to download to KFlop or save as
> C.
> > > Am I reading the instructions correctly that downloading is
> preferable
> > > to putting the config info in C?
> > > > 5. I'm planning on using KMotionCNC to actually run the mill. This
> > is
> > > where the encoder info is set up, but isn't this needed in Kmotion
> as
> > > well?
> > > > 6. The encoder counts specified to KMotionCNC are encoder
> > resolution,
> > > or resolution x 4?
> > > > 7. The homing and setup is supposed to be put in a C program -
> when
> > is
> > > this called, and what calls it? Is it the buttons in KMotionCNC?
> > > >
> > > > Thanks!
> > > >
> > >
> >
>